package com.irs.irsforum.service;

import com.irs.irsforum.entity.Comment;
import com.baomidou.mybatisplus.service.IService;

import java.sql.SQLException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yihuili
 * @since 2020-01-18
 */
public interface ICommentService extends IService<Comment> {

    /**
     * 添加评论
     * @param comment
     * @return
     */
    Integer setComment(Comment comment) throws SQLException;

    /**
     * 删除评论
     * @param commentId
     * @param userId
     * @return
     */
    Integer delComment(Long commentId, Long userId);

    /**
     * 回复评论
     * @param comment
     * @return
     */
    Integer reply2comment(Comment comment);
}
